﻿<controls:ChildWindow x:Class="OpenRPOSBackOffice.AddLayout"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           Width="400" Height="180" 
           Title="Add Layout">
    <Grid x:Name="LayoutRoot" Margin="2,2,1,7" Loaded="LayoutRoot_Loaded">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="114" />
            <ColumnDefinition Width="161"/>
        </Grid.ColumnDefinitions>
        <sdk:Label Content="Layout Name " Grid.Row="0" HorizontalAlignment="Right"  VerticalAlignment="Center"  Margin="0"  Padding="1,1,2,1" />
        <TextBox x:Name="txtLayoutName"  Text="" Grid.Column="1"  Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="260" Margin="1,2,-106,1" KeyDown="txtLayoutName_KeyDown" VerticalContentAlignment="Top" TextAlignment="Left"  MaxLength="50">
         </TextBox>


        <sdk:Label Content="Height " Grid.Row="1" VerticalAlignment="Center" Margin="0"  Padding="1,1,2,1" HorizontalAlignment="Right" />
        <TextBox x:Name="txtHeight" Text="" Grid.Column="1"  Grid.Row="1" VerticalAlignment="Top" HorizontalAlignment="Left" Width="132" Margin="1,2,-106,1" KeyDown="txtHeight_KeyDown"  TextAlignment="Right"/>



        <sdk:Label Content="Width " Grid.Row="2" VerticalAlignment="Center" Margin="0"  Padding="1,1,2,1" HorizontalAlignment="Right" />
        <TextBox x:Name="txtWidth" Text="" Grid.Column="1" Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="1,2,-106,1" Width="132" KeyDown="txtWidth_KeyDown" HorizontalContentAlignment="Left" TextAlignment="Right"/>
  
        <Button x:Name="btnOK" Content="OK" Click="btnOK_Click" Width="75" HorizontalAlignment="Right" Margin="0,10,-20,0" Grid.Row="3" Grid.Column="2" />
        <Button x:Name="btnCancel" Content="Cancel" Click="btnCancel_Click" Width="75" HorizontalAlignment="Right" Margin="0,10,-100,0" Grid.Row="3" Grid.Column="2" />
        


    </Grid>


</controls:ChildWindow>